/*
 * Títutlo: SpriteAvion.java
 * Autor: Oswaldo Ceballos Zavala (Inu)
 * Descripción: 
 * 
 * Universidad Autónoma de Yucatán
 * 
 */
package aerodromo.view;

import java.awt.Image;
import javax.swing.ImageIcon;

/**
 *
 * @author Oswaldo.C
 */
public class SpriteAvion {
    
   private String rutaSprite = "avionPista.png";
   
   
   //coordenadas del sprite
   private int x;
   private int y;
   
   private Image image;
    
   public SpriteAvion(){
      ImageIcon ii = new ImageIcon(this.getClass().getResource(rutaSprite));
      image = ii.getImage();
      x = 0;
      y = 525; //525 hide it
   }    
   
   public void forward(){
        y -= 4;
   }
   

    /**
     * @return the x
     */
    public int getX() {
        return x;
    }

    /**
     * @param x the x to set
     */
    public void setX(int x) {
        this.x = x;
    }

    /**
     * @return the y
     */
    public int getY() {
        return y;
    }

    /**
     * @param y the y to set
     */
    public void setY(int y) {
        this.y = y;
    }

    /**
     * @return the image
     */
    public Image getImage() {
        return image;
    }

    /**
     * @param image the image to set
     */
    public void setImage(Image image) {
        this.image = image;
    }
    
    
} //fin clase SpriteAvion
